import React from "react";

type IProps={
    name:string
    age:number
}

class MyClassComponent2 extends React.Component<IProps> {


    render() {
        return (
            <>
                <p>MyClassComponent2</p>
                <p>name:{this.props.name},age:{this.props.age}</p>
            </>
        )
    }
}

export default MyClassComponent2;